package com.qingcloud.adminbackend.mapper;

import com.baomidou.mybatisplus.core.mapper.BaseMapper;
import com.qingcloud.adminbackend.entity.source.DataSourceDatabaseDto;
import org.apache.ibatis.annotations.Param;
import org.springframework.stereotype.Component;

import java.util.Collection;
import java.util.List;

/**
 * <p>
 * Mapper 接口
 * </p>
 *
 * @author wangjinnan
 * @since 2021-03-17
 */
@Component
public interface DatasourceDatabaseMapper extends BaseMapper<DataSourceDatabaseDto> {

    List<DataSourceDatabaseDto> findByDsIds(@Param("ids") List<String> ids);

    List<DataSourceDatabaseDto> findByNameOrProjectId(@Param("name") String name, @Param("pidSet") Collection<String> pidSet);
}
